package com.example.token_localstorage.token;


/**
 * @author Zeng
 * @date 2020/2/17 10:15
 */
public enum ResultSet {

    SUCCESS(200, "处理成功！",200),
    FAIL(100,"处理失败！",500),
    NOT_ALLOWED(1001, "尚未登陆认证！没有资格访问！",500)
    ;

    @lombok.Getter
    private Integer code;
    @lombok.Getter
    private String message;
    @lombok.Getter
    private Integer status;


    ResultSet(Integer code, String message,Integer status){
        this.code = code;
        this.message = message;
        this.status = status;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }
}
